import http from "@/utils/http.ts";


const containerMange = {
    list(params: any) {
        return http.get('/ctfContainer/selectPage', params)
    },
    create(data: any) {
        return http.post('/ctfContainer/create', data)
    },
    update(data: any) {
        return http.put('/ctfContainer/update', data)
    },
    delete(params: any) {
         return http.delete(`/ctfContainer/deleteContainer/${params}` )
    },
    //销毁容器
    destroy(params: any) {
        return http.delete('/ctfContainer/destroyContainer', params )
    },
    //创建并启动容器
    createStart(params: any) {
        return http.post('/ctfContainer/startContainer', params)
    },
    //对比flag
    compareFlag(params:any) {
        return http.get('/ctfContainer/checkFlag', params)
    },
    //检查容器状态
    checkStatus(params: any) {
        return http.get('/ctfContainer/checkStatus', params)
    }
}
export default containerMange